#include "thread_pool.hpp"
#include "Task.hpp"
#include <cstdlib>
#include <ctime>
#include <string>

using namespace ns_task;
using namespace ns_pthreadpool;

int main()
{
    srand((long long)time(nullptr));
    while (true)
    {
        int x, y;
        std::string ops("+-*/%");
        char op;
        x = rand() % 20 + 1;
        y = rand() % 20 + 1;
        op = ops[rand() % 5];
        Task t(x, y, op);
        ThreadPool<Task>::GetInstance()->PushTask(t);
        // std::cout << ThreadPool<Task>::GetInstance() << std::endl;
    }
    return 0;
}